﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace QuanLyKhachSan
{
    public partial class UC_DatPhong : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Phong_Load();
            }
        }
        private void Phong_Load()
        {
            try
            {
                cbxPhong.DataSource = PhongBLL.Phong_GetItems(0);
                cbxPhong.DataTextField = "PhongName";
                cbxPhong.DataValueField = "PhongID";
                cbxPhong.DataBind();
            }
            catch (Exception)
            {
                
                throw;
            }
        }
    }
}